home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2001 / MacHack 2001.toast / pc / The Hacks / Airport Radar™ / Source / WirelessAPI.h < prev   
Encoding:
C/C++ Source or Header  |  2001-06-23  |  1.1 KB  |  53 lines

  1. /*
  2.      File:       WirelessAPI.h
  3.  
  4.      Contains:   Wireless API
  5.  
  6.      Version:    MacHack 2001
  7.   
  8. */
  9.  
  10. #ifndef __WIRELESSAPI__
  11. #define __WIRELESSAPI__
  12.  
  13. #ifndef __MACTYPES__
  14. #include <MacTypes.h>
  15. #endif
  16.  
  17. //#define ASSERT(x) if (x == false) Debugger()
  18.  
  19. #ifdef __cplusplus
  20. extern "C" {
  21. #endif
  22.  
  23. //    Opaque reference to a dev
  24. typedef UInt32    WirelessDeviceRef;
  25.  
  26. struct WirelessNodeInfo
  27. {
  28.     UInt16                            fUndefined1;
  29.     UInt16                            fNoiseLevel;
  30.     UInt16                            fSignalLevel;
  31.     UInt16                            fMACAddress[3];
  32.     UInt16                            fUndefined2;
  33.     UInt16                            fUndefined3;
  34.     char                            fName[34];
  35. };
  36. typedef struct WirelessNodeInfo        WirelessNodeInfo;
  37. typedef WirelessNodeInfo *            WirelessNodeInfoPtr;
  38.  
  39. OSStatus        WirelessConnect(WirelessDeviceRef* outRef, UInt32 inMagic);
  40.  
  41. OSStatus        WirelessScan(WirelessDeviceRef inRef, WirelessNodeInfoPtr ioResultData, SInt32* ioResultCount);
  42.  
  43. OSStatus        WirelessScanMerge(WirelessDeviceRef inRef, WirelessNodeInfoPtr ioResultData, SInt32* ioResultCount, SInt32 inIterationCount, UInt32 inDelayValue);
  44.  
  45. OSStatus        WirelessDisconnect(WirelessDeviceRef inRef);
  46.     
  47. #ifdef __cplusplus
  48. }
  49. #endif
  50.  
  51. #endif /* __WIRELESSAPI__ */
  52.  
  53.